-
-
Notifications
You must be signed in to change notification settings - Fork 13
[Windows] Add support for php.new (herd-lite) #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
I wrote some directions in the main repo to do so: https://github.com/symfony-cli/symfony-cli/blob/main/CONTRIBUTING.md#additional-repositories |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we add support for php.new on Linux and macOS as well?
@@ -51,6 +51,11 @@ func (s *PHPStore) doDiscover() { | |||
if userHomeDir != "" { | |||
s.discoverFromDir(filepath.Join(userHomeDir, ".config", "herd", "bin"), nil, regexp.MustCompile("^php\\d{2}$"), "Herd") | |||
} | |||
|
|||
// Herd-lite | |||
if userHomeDir != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about merging it with the previous if userHomeDir != ""
?
|
||
// Herd-lite | ||
if userHomeDir != "" { | ||
s.addFromDir(filepath.Join(userHomeDir, ".config", "herd-lite", "bin"), nil, "Herd-lite") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s.addFromDir(filepath.Join(userHomeDir, ".config", "herd-lite", "bin"), nil, "Herd-lite") | |
s.addFromDir(filepath.Join(userHomeDir, ".config", "herd-lite", "bin"), nil, "php.new (Herd-lite)") |
?
Totally, given the installation files, PHP should be available at |
Great 👍 |
I suppose it works, but I haven't been able to test it.
With Go, how can I use my PR with the Symfony CLI, so I can try to see if
local:php:list
gives me PHP from herd-lite directory?Close #25